<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <div class="nav">
        <ul class="cc">
          <li <if condition=" !isset($_GET['status']) || $_GET['status']==1 && empty($itemtype) ">class="current"</if>><a href="{:U('User/teachlist')}">通过列表</a></li>
            <li <if condition=" isset($_GET['status']) && $_GET['status']==2 ">class="current"</if>><a href="{:U('User/teachlist', array('search'=>1 ,'status'=>2))}">待审核</a></li>
            <li <if condition=" $_GET['status']== -1 ">class="current"</if>><a href="{:U('User/teachlist', array('search'=>1 ,'status'=>-1))}">未通过审核</a></li>
        </ul>
      </div>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('teachlist')}">
        <input type="hidden" value="1" name="search">
        <div class="search_type cc mb10">
            <div class="mb10">
        <select class="select_2" name="searchtype">
            <option value='0' <if condition=" $searchtype == '0' "> selected</if>>昵称</option>
            <option value='1' <if condition=" $searchtype == '1' "> selected</if>>手机号</option>
            <option value='2' <if condition=" $searchtype == '2' "> selected</if>>邮箱</option>
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
            </div>
        </div>
    </form>
    <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="5%">通过</td>
                <td width="5%">认证</td>
                <td width="12%" align="left" >昵称</td>
                <td width="18%" align="left" >邮箱</td>
                <td width="12%" align="left" >手机</td>
                <td width="15%" align="left" >注册时间</td>
                <td width="15%" align="left" >登录时间</td>
                <td width="">管理操作</td>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.userid}"></td>
                    <td>{$vo.status|showStatus}</td>
                    <td>{$vo.ifds|showDs}</td>
                    <td><a href="#" onclick="omnipotent('selectid','{:U("User/edit",array("userid"=>$vo[userid]))}','{$vo.uname}的详细资料',1,600)">{$vo.nickname}</a><if condition="$vo.ifrequest eq 1 && $vo.ifrz eq 0"><font color="#ff0000">(申)</font></if></td>
                    <td>{$vo.uemail}</td>
                    <td>{$vo.umobile}</td>
                    <td>{$vo.create_time|date='Y-m-d H:i',###}</td>
                    <td>{$vo.login_time|date='Y-m-d H:i',###}</td>
                    <td>
                        <a href="/u/{$vo.openuid}" target="_blank">查看详情</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="p10">
            <div class="pages"> {$Page} </div>
        </div>
    </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('User/teachbatch',array('do'=>'checkpass'))}">通过审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('User/teachbatch',array('do'=>'cancelpass'))}">不通过审核</button>
                <!-- <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除该会员的所有信息?" data-subcheck="true" data-action="{:U('User/deleteAll')}">删除</button>-->
            </div>
        </div>
    </form>
</div>
<script src="__JS__/common.js"></script>
<script src="__JS__/content_addtop.js"></script>
</body>
</html>